Learning to teleport in The Sims 2: Bon Voyage involves tracking down a mysterious ninja.
Head to Takemizu Village and visit one of the community lots. With a bit of luck, a ninja will appear. Click on him and select "Learn to Teleport."
The ninja will quiz you. To the classic question "What comes first, the ninja or the sword?" the correct answer is "the sword." Answer correctly and he will teach you to teleport. Get it wrong, and he vanishes until next time.
Some players report different questions, so a little luck may be involved. And if you are impatient, simply leaving the game running for a few minutes can sometimes cause the ninja to teach you automatically.