To attract a Fox in Viva Piñata, you'll need to feed one of your piñatas the right meal. A Fox will appear if it eats a bunny or a chicken.
Set up the conditions, offer the right snack, and you'll soon have a fox visiting your garden.