Here "Так точно" = "Yes, (sir)!". It's a standard affirmative answer used by military personnel. For negative answer there's a set phrase "Никак нет" (="No, (sir)")

People sometimes use them instead of "yes" and "no" in everyday life to add humor to the situation.

PS. Oops. Sorry, I was late.