boxit – Draw a box around a text
This is pretty much the same macro that appears in the TeXbook.
Maybe you are interested in the following packages as well.
- boxit-ltx: An environment for boxing things
- ovalfbox: Boxes with frames whose corners are rounded
- automagic: Automagic numbering in Plain TeX
- outerhbox: Collect horizontal material for contributing to a paragraph