"The Man Who Became God" (神となった男, Kami to Natta Otoko) is episode 130 of the Naruto: Shippūden anime.
Jiraiya faces off Konan while Pain is on his way. When Pain arrives, they discuss Pain's personal ideology, and Akatsuki's goals. Pain, who is convinced Jiraiya is to die anyway, reveals the collection of the tailed beasts was in order to create a kinjutsu which could wipe away entire nations, so that the world would "mature" and develop aversion for war. Finishing their talk, Pain summons a crustacean to attack Jiraiya, who defeats it and calls summons a great frog in opening of their battle.