Well I've found that if you just smile and wave at people when they try to race you, and continue to drive normally they'll leave you alone.

If you drive normally but don't acknowledge the ricer, he's going to think you haven't noticed him, and thus continue pestering you.