Melt the margarine in a saucepan and add the flour until it becomes solid. Gradually deglaze with the broth, stir with a whisk so that no lumps form. Add the milk and gradually melt the cheese in it.
Season with a little nutmeg, salt and pepper and finally add the diced ham.