Last Action Hero
"Last Action Hero" (1993) has Jack Slater parody the phrase before blowing up a building behind him just by smoking a cigar. His version has him say "To be, or not to be? Not to be."