This is a children's fantasy story about a magical record that I read in grade school, during the time a certain Californian was president. But I think the story is much older than that, probably from the 1950's.
A stranger walks into a diner, behaving really strangely. He keeps injecting strange phrases into what he says, and compulsively hiccuping before the word "pie". He's selling records, and puts one on the turntable as a demonstration.
The strange phrases turn out to be from the song playing on the record. Apparently the song (about donuts) is very catchy, because before long, everyone in town is compulsively singing the song, and can't do anything else. IIRC the remedy is to play the song on the other side of the record.