Heat the olive oil in a large saucepan over a low heat. Stir in the onion and garlic with the salt and pepper. Cook until the onions are soft, but not burnt.
Stir in the basil, oregano and tomato puree and cook for a few mins. Add the dry sherry and stock and stir. Bring the mixture to a boil and simmer for 10mins.
Pour the mixture into a blender and blitz until smooth. Return to the pan, add the ravioli and cook for another 5-8mins until the fresh pasta has cooked.