Becoming a Game Master in Dofus isn't something players can achieve on their own. The only way to hold that role is to be hired directly by Ankama Games to work for them, whether as a programmer, tester, or in another staff position.
In short, it's a job rather than an in-game rank, so the path forward is to keep an eye on Ankama's career openings.