I don't think you can do this natively (well, obviously, you can take a picture of yourself just by pointing the camera at your own face, but it doesn't have a "self portrait" mode per se). You might find an app in the market that does this, though.
This is a Simple Dialog Demo.