I paid my teacher a visit the other day.=I visited my teacher the other day.
pay sb a visit是词组= visit sb 意思是:“ 拜访某人”