Clean and finely chop the vegetables. Heat the oil in a pan, briefly fry the onion, garlic and ham, add the vegetables after one or two minutes and cook covered over medium heat for about 15 minutes, possibly adding a little water or cream. Just before the end of the cooking time, add the sauce.
You can also serve pasta with it, but then leave out the potatoes.