Katy Perry to Guest-Star on Fox’s ‘Raising Hope’

"Teenage Dream" singer Katy Perry will play a prison attendant on March 6 episode of Fox sitcom "Raising Hope"

Katy Perry is going to prison — on "Raising Hope."

The "Teenage Dream" singer will guest-star on the Fox comedy in an episode that will air March 6. Perry will play Rikki, a prison attendant who claims to be a long-lost pal of Sabrina (Shannon Woodward), who's arrested after participating in an Occupy Natesville protest.

Nikki endeavors to make Sabrina's prison stint as miserable as possible, until she remembers the good times they once shared.

Also read: Lady Gaga, Katy Perry Top China's Band Music List

The idea for the guest spot emerged from Woodward's real-life friendship with Perry, according to executive producer Greg Garcia.

Also read: Katy Perry as Marilyn Monroe on Broadway? Harvey Weinstein Wants It to Happen

"Shannon Woodward told me that her friend Katy was interested in doing an episode and I thought, 'Why not? Let's do your friend Katy a favor,'" Garcia cracked. "Then she came in and did a terrific job. She was hilarious. And now people are telling me that Katy is also a singer. I sincerely hope that her appearance on the show helps her get her singing career off the ground. It's a tough business."