Good for you for telling him off! It seems like people are quick to think 'someone else will take care of it' when something offensive happens, but I think confronting it is the best policy. The person being picked on may not be able to stand up for themselves (no confidence, no support, etc). I would want someone to stand up for me if I was being made fun of in such a rude/ignorant way.