Yes, have used mint on many occasions and it works!
Just one, may be two mint stalks with a few roots, stuck in the pot,... let it grow and ants will definitely vanish. Trim the mint regularly as they may go wild !! Also it brings a nice shade to the topsoil and keeps moisture where it should be
Francisco