It's a smart-aleck-y way of saying someone's bragging and is
about to be proven wrong. Famous last words are the things famous
people have said right before they died, so it's become a way of
poking fun at someone who thinks they know what's going to
Joe: I'm going to be president of our class.
Sam: Famous last words!