Baptizing and teaching are meant participles. Jesus is describing how the finite verb's operation is carried out. Jesus is explaining the symbolic act of being initiated into His fold by using the word "baptizing." The gospel is the cause for the initiation, making it the most important message a person can hear in this life. Since the emphasis is about witnessing, the role of baptizing in this text is primarily evangelistic.