During war, nothing unless the city is under attack, in which case a ranged unit goes in there to keep it safe, but its firing, so it still doesn't count as a garrison. During peace... still nothing most of the time except if I happened to pick up Military Caste on my way to Professional army.
I prefer to have my army where I think I might need it.