/Engine/Source/Runtime/Engine/Classes/Debug/DebugDrawComponent.h
It is also possible to add text from other sources of data from the scene proxy but that requires a few extra steps:
class UDebugDrawComponent : public [UPrimitiveComponent](API\Runtime\Engine\Components\UPrimitiveComponent)
FDebugDrawDeleg...
DebugDrawDelegateHelper