Eating a small snack a few hours before bedtime may help you sleep by preventing hunger from waking you. However, there are no snacks that guarantee to put you to sleep.