The song "I Love Candy" appears in Season 9, Episode 16: "The Last Temptation of Krusty."
Krusty the Clown performs the number at a Krusty Burger restaurant, joined by Homer and other patrons in a chaotic, hilarious musical scene.