Thank you gift to hospital staff

I read that that you should bring a gift for the staff that helps deliver your baby and that baking cookies would be a nice gesture. But when do you bake the cookies if going into labor is so unpredictable?