How do I add a post's ID to the byline

I need to add the post ID to the byline as shown in the picture below.

* How do I do that?
* How do I do it (and other theme tweaks) in a way that is requires minimum maintenance when you update the theme?