Note the long mouthparts of the pupa on the left.
A small carpenter bee pupa (left) and grubs.

Photo by J.R. Baker, NC State University