Its a line from Top Gun Maverick, where the main character stole an enemy plane and it is approached mid air by a SU57, sowhen they try to communicate he tells his copilot "just smile and wave"
The Penguins of Madagascar is much older than Top Gun: Maverick, how could it the show have referenced a movie from the future? Or did the original commenter mean the original Top Gun?