Will ice cream or chilli cool you down?

Is it better to eat spicy or cold foods during a heatwave?