Impossible in Pearl. The Magmarizer (evolves Magmar → Magmortar) is exclusive to Pokémon Diamond (found on wild Magby at Stark Mountain). In Pearl, you must trade from Diamond or migrate from Gen IV games that have it. No in-game method exists in Pearl.