add_meta_box as per the Codex entry.
My question is about the 'callback' to print the form fields on the admin page.
In the Codex, the form fields are echoed as written out HTML elements, but in some plugins I've looked through, the developers prefer to use 'callback_args' to pass an easy to understand array to pseudo-form elements that is then processed to output the HTML elements with minimal HTML coding. See, for example, this code on GitHub. WooCommerce also has a similar way to build meta boxes for products.
So my question is: does WordPress by default have a similar mechanism or is that a feature that requires a plugin?