In a small bowl, whisk together eggs, ricotta cheese, pesto, salt, and pepper. Cook eggs in a nonstick skillet coated with cooking spray over low heat, stirring constantly until desired doneness.
Remove from heat, and serve over ham and toasted bread.