Homer is intrigued by a contest that will allow the winner, the finder of a golden ticket, a trip to "Farmer Billy's Bacon Factory". Homer buys a lot of pork products but is only able to find a silver ticket, which allows him to judge the pig competition at the county fair. When Homer sees an injustice being done to Lisa's entry in the place setting competition, he decides to take action. Remembering Chief Wiggum's warning about felony assault, he disguises himself as "Pie Man" and delivers a pie in the face as revenge. He disappears as quickly as he came, making Springfield wonder if they will ever see him again.
When Bart gets ripped off by Comic Book Guy, Pie Man delivers some "key lime justice." The police decide that Pie Man needs to be stopped and they shoot him when he makes his next appearance. He takes time out from his fleeing to save Marge and then kisses her, even though she tells him she's a married woman. Later at home, the wounded Homer makes a promise to Lisa (who's figured out his disguise) that he will stop his pie avenging.
When Mr. Burns goes too far, Pie Man makes another appearance, but his escape from the plant is thwarted by his own laziness. Mr. Burns turns him into his personal hit man. Homer finds himself in a dilemma when Mr. Burns wants him to deliver a pie in the face of Lisa's Buddhist hero the Dalai Lama. When he comes clean in front of a crowd, no one believes that he was capable of being the "Pie Man," only his family believes in him.