I can't remember where I first heard this, but I've always been able to get songs out of my head by singing them like Bob Dylan. I don't have to actually sing them out loud, but if I change the voice and cadence of the singer to Bob Dylan, the song goes away.
If it's an instrumental song, however, I'm screwed.