People always throw offensive words or questions to you just to know your reaction.
When such thing happens, don't give them the reaction they are expecting rather give them the silent they need.
In some occasions, you can ask them to repeat what they said to bring them back to their senses if they actually have one.