It wouldn't display like that, firstly you would need to get the entity id then only you can print it after title.
Now if it is a template of node then you can either just get the argument from the url e.g $node_id = arg(1); this will give you the node id and you can print this.
<?php print $node_id . ' ' . $title; ?>
If it is some other entity then definitely in the url you will be getting some id of the entity.
Another way is that you can write hook_preprocess_page(&$variables) function where in $variables array you can set the value of the entity id e.g $variable['my_entity_id'] = ______ and in your template you can just print $my_entity_id . ' ' . $title;