How do I publish entries with a specific category id?
You can pass in a CategoryModel to the relatedTo parameter, so its just a matter of getting the CategoryModel you're after. Something like:

{% set category = craft.categories.id(42).first %}
{% set entries = craft.entries.section('blog').limit(3).relatedTo(category) %}