It's a tree borer. They're very common around here in west central Texas as they attack mesquite trees after the tree limbs are dead and probably attack fruit trees that are alive as many borers do. They bore holes in trees and lay their eggs in the holes and the larve hatch out and eat their way around the inside of the dead limbs. When burning logs pop, it is often the steam pressure generated by the cooked larve in their holes that explosively decompresses.
And city folk say country folk got nothing to entertain them - ha.
Watching grass grow is boring but watching weeds grow at breakneck speeds is EXCITING!